package shop.yaojianfeng.springlearning.section9.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 资源授权测试
 * @author yaojianfeng
 */
@RestController
@RequestMapping("/r")
public class ResourceController {


    @RequestMapping(value = "/r1",produces = "application/json;charset=utf-8")
    public String getR1(){
        return "访问r1资源";
    }
    @RequestMapping(value = "/r2",produces = "application/json;charset=utf-8")
    public String getR2(){
        return "访问r2资源";
    }
}
